package com.jymj.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.Comparator;

public class GhEntity implements Serializable,Comparator<GhEntity> {

    private Integer gid;
    private String czGhFlmc;
    private String fqGhFlmc;
    private String xzqmc;
    private String code;
    private String center;
    private String geometry;
    private BigDecimal area;//总面积

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getCzGhFlmc() {
        return czGhFlmc;
    }

    public void setCzGhFlmc(String czGhFlmc) {
        this.czGhFlmc = czGhFlmc;
    }

    public String getFqGhFlmc() {
        return fqGhFlmc;
    }

    public void setFqGhFlmc(String fqGhFlmc) {
        this.fqGhFlmc = fqGhFlmc;
    }

    public String getXzqmc() {
        return xzqmc;
    }

    public void setXzqmc(String xzqmc) {
        this.xzqmc = xzqmc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCenter() {
        return center;
    }

    public void setCenter(String center) {
        this.center = center;
    }

    public String getGeometry() {
        return geometry;
    }

    public void setGeometry(String geometry) {
        this.geometry = geometry;
    }

    public BigDecimal getArea() {
        return area;
    }

    public void setArea(BigDecimal area) {
        this.area = area;
    }

    @Override
    public int compare(GhEntity o1, GhEntity o2) {
        return o1.fqGhFlmc.compareTo(o2.fqGhFlmc);
    }
}
